<!DOCTYPE html>
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div style="margin-left: 400px;">
        <div th:each="student:${studentArray}">
            <p th:text="${student.id}"></p>
            <p th:text="${student.name}"></p>
            <p th:text="${student.age}"></p>
            <p th:text="${student.sex}"></p>
        </div>
    </div>
</body>
</html>